import requset from "../utils/requset";
// 登录
export const login = (data) => {
  return requset({
    url: "/login",
    method: "POST",
    data,
  });
};
// 添加学生
export const getStudent = (data) => {
  return requset({
    url: "/postStudentInfo",
    method: "post",
    data,
  });
};
// 获取学生
export const tudentInfor = (parmas) => {
  return requset({
    url: "/getStudentInfo",
    method: "GET",
    parmas,
  });
};
// 毕业学生
export const putStudent = () => {
  return requset({
    url: "/putStudentInfo/:_id",
    method: "PUT",
  });
};
// 删除学生;
export const delStudent = () => {
  return requset({
    url: "/delStudentInfo/:_id",
    method: "delete",
  });
};
